/**
 * 库存管理api
 */
import request from '@/utils/request'

const BASE_URL = '/wms/stock'

export function getPage(query) {
  return request({
    url: BASE_URL + '/page',
    method: 'POST',
    data: query
  })
}

export function getById(id) {
  return request({
    url: BASE_URL + `/${id}`,
    method: 'GET'
  })
}
export function listForSparePart(query) {
  return request({
    url: BASE_URL + '/listForSparePart',
    method: 'POST'
    // data: query
  })
}
